package ooday04;

public enum Time {
    MORNING("起床",6),
    MIDDAY("吃饭午休",2),
    AFTERNOON("工作",4),
    NIGHT("娱乐休息",12);
    private String activity;
    private int hours;

    Time(String activity, int hours) {
        this.activity = activity;
        this.hours = hours;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public int getHours() {
        return hours;
    }

    public void setHours(int hours) {
        this.hours = hours;
    }
}
